package com.woniu.dao;

import com.woniu.domain.Menu;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @author: 刘家元  <br/>
 * Date: 2021/6/8:12:17  <br/>
 * Description:菜单持久化接口
 */

public interface MenuDao {
    //查询所以父菜单及对应的子菜单
    @ApiOperation(value = "查询所以父菜单及对应的子菜单")
    List<Menu> menuQuery();

    @ApiOperation(value = "根据父id查询对应的子菜单")
    @ApiImplicitParam(name = "fid",value = "父菜单id")
    List<Menu> menuGetById(@Param("fid") Integer fid);
}
